//package com.example.config;
//import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import javax.sql.DataSource;
//
///**
// * Activiti工作流配置类
// *
// * @author wsl
// */
//@Configuration
//public class ActivitiConfig {
//
//    @Autowired
//    private DataSource dataSource;
//
//    @Bean
//    public StandaloneProcessEngineConfiguration standaloneProcessEngineConfiguration(){
//        StandaloneProcessEngineConfiguration standaloneProcessEngineConfiguration = new StandaloneProcessEngineConfiguration();
//        standaloneProcessEngineConfiguration.setDatabaseSchemaUpdate("true");
//        standaloneProcessEngineConfiguration.setDataSource(dataSource);
//        //asyncExecutorActivate 属性指示 Activiti Engine 在启动时启动 Async 执行器。
////        standaloneProcessEngineConfiguration.setAsyncExecutorActivate(true);
//        return standaloneProcessEngineConfiguration;
//    }
//
//}
